Skip to content

c-api: add missing SVGZ error enum - #1122

Merged
nicoburns merged 1 commit into
linebender:mainfrom
kleisauke:c-api-add-missing-enum
Aug 9, 2026
Merged

c-api: add missing SVGZ error enum#1122
nicoburns merged 1 commit into
linebender:mainfrom
kleisauke:c-api-add-missing-enum

Conversation

@kleisauke

Copy link
Copy Markdown
Contributor

Add the missing RESVG_ERROR_SVGZ_UNSUPPORTED enum value to resvg.h so the C API enum values remain in sync with the Rust definition and subsequent error codes are not shifted.

While we're here, simplify this enum description (as the svgz feature is enabled by default) and add the corresponding Qt error string in ResvgQt.h.

Fixes: #1112.


Verified against wasm-vips with this sed substitution:
https://github.com/kleisauke/wasm-vips/blob/8f38cbbb70d7536bd0f3d70e308c501cbe4f2e22/build.sh#L442-L443

@nicoburns
nicoburns merged commit 3f281f0 into linebender:main Aug 9, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix the unnecessary breaking change in the C-API

2 participants